
#MAKE=make
CC=gcc
#KER_VERSION?=$(shell uname -r)
#KERNEL_DIR:=/usr/src/linux-2.6.24
KERNEL_DIR:=/lib/modules/2.6.24-iceman/build

#PWD :=$(shell pwd)

obj-m := hello.o

modules:
	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules

#module_install:
#cp hello.ko $()
clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.*
.PHONE:modules clean